{foreach from=$pages item=page}

 	<input type="hidden" name="objects[]" id="objects[]" value="{$page.obj_id}" />

	<div style="padding:2px;position:relative;;" onmouseover="this.style.backgroundColor='#EAEAEA';" onmouseout="this.style.backgroundColor='';">
		<div style="float:left;width:450px;position:relative;">
			<img src="img/icon_page.gif" border="0" align="left" style="margin-right:8px;margin-left:{$level}px;" />  {$page.obj_name_name} [{$page.class_name}]
			<br style="clear:both;" />
		</div>
		<div style="float:left;width:50px;text-align:center;position:relative;"><input type="checkbox" id="{$prefix}_obj_{$page.obj_id}_read" name="{$prefix}_obj_{$page.obj_id}_read" value="1" {if $page.permissions.read==1}checked="checked"{/if} /> <a href="javascript:void(0);" onclick="CMS.UserAdministration.ChangeUserPermissions('{$prefix}_obj_{$page.obj_id}','read',xajax.$('{$prefix}_obj_{$page.obj_id}_read').checked)"><img src="{$LIBRARY_WEB}/famfamfam/icons/arrow_undo.png" border="0" /></a></div>
		<div style="float:left;width:50px;text-align:center;position:relative;"><input type="checkbox" id="{$prefix}_obj_{$page.obj_id}_modify" name="{$prefix}_obj_{$page.obj_id}_modify" value="1"  {if $page.permissions.modify==1}checked="checked"{/if}  /> <a href="javascript:void(0);" onclick="CMS.UserAdministration.ChangeUserPermissions('{$prefix}_obj_{$page.obj_id}','modify',xajax.$('{$prefix}_obj_{$page.obj_id}_modify').checked)"><img src="{$LIBRARY_WEB}/famfamfam/icons/arrow_undo.png" border="0" /></a></div>
		<div style="float:left;width:50px;text-align:center;position:relative;"><input type="checkbox" id="{$prefix}_obj_{$page.obj_id}_new" name="{$prefix}_obj_{$page.obj_id}_new" value="1"  {if $page.permissions.new==1}checked="checked"{/if}  /> <a href="javascript:void(0);" onclick="CMS.UserAdministration.ChangeUserPermissions('{$prefix}_obj_{$page.obj_id}','new',xajax.$('{$prefix}_obj_{$page.obj_id}_new').checked)"><img src="{$LIBRARY_WEB}/famfamfam/icons/arrow_undo.png" border="0" /></a></div>
		<div style="float:left;width:50px;text-align:center;position:relative;"><input type="checkbox" id="{$prefix}_obj_{$page.obj_id}_delete" name="{$prefix}_obj_{$page.obj_id}_delete"  value="1"  {if $page.permissions.delete==1}checked="checked"{/if} /><a href="javascript:void(0);" onclick="CMS.UserAdministration.ChangeUserPermissions('{$prefix}_obj_{$page.obj_id}','delete',xajax.$('{$prefix}_obj_{$page.obj_id}_delete').checked)"><img src="{$LIBRARY_WEB}/famfamfam/icons/arrow_undo.png" border="0" /></a></div>
		<br style="clear:both;" />
		<div style="border-bottom:1px solid #CCC;font-size:1px;margin-left:{$level}px;height:1px;">&nbsp;</div>
	</div>
	<div id="{$prefix}_structure_obj_{$page.obj_id}">
		{if $page.count > 0}
			<div style="padding:2px;;" onmouseover="this.style.backgroundColor='#EAEAEA';" onmouseout="this.style.backgroundColor='';">
				<div style="float:left;width:455px;position:relative;">				
					<img src="{$LIBRARY_WEB}famfamfam/icons/page_add.png" alt="add" border="0" align="left" style="margin-right:8px;margin-left:{$level}px;" /> 
					<a href="javascript:void(0);" class="navi" onclick="{strip}{literal}xajax.request({ccdsfun:'UserAdministrationUserStructureListObjects',ccdsclass:'ccdsUserAdministration'},
					 {
						parameters:[{{/literal}
						user_id: '{$user.user_id}',
						obj_id: '{$page.obj_id}',
						level: '{$level}',
						prefix:'{$prefix}_obj_{$page.obj_id}'						 
						{literal}}
						],
						context : {{/literal}
							target : xajax.$('{$prefix}_structure_obj_{$page.obj_id}')
						{literal}}
					});{/literal}{/strip}"> Objekte darunter</a>
				</div>
				<div style="float:left;width:190px;position:relative;"><input type="checkbox" id="{$prefix}_obj_{$page.obj_id}_subs" name="{$prefix}_obj_{$page.obj_id}_subs"  value="1" /> Einstellungen übernehmen</div>
				<br style="clear:both;" />
				<div style="border-bottom:1px solid #BBB;font-size:1px;margin-left:{$level}px;height:1px;">&nbsp;</div>
			</div>
		{/if}
	</div>
{/foreach}